﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005FD RID: 1533
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GameAeonInfo : IMessage<GameAeonInfo>, IMessage, IEquatable<GameAeonInfo>, IDeepCloneable<GameAeonInfo>, IBufferMessage
	{
		// Token: 0x170013BA RID: 5050
		// (get) Token: 0x0600450D RID: 17677 RVA: 0x000BD3CD File Offset: 0x000BB5CD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GameAeonInfo> Parser
		{
			get
			{
				return GameAeonInfo._parser;
			}
		}

		// Token: 0x170013BB RID: 5051
		// (get) Token: 0x0600450E RID: 17678 RVA: 0x000BD3D4 File Offset: 0x000BB5D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GameAeonInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170013BC RID: 5052
		// (get) Token: 0x0600450F RID: 17679 RVA: 0x000BD3E6 File Offset: 0x000BB5E6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GameAeonInfo.Descriptor;
			}
		}

		// Token: 0x06004510 RID: 17680 RVA: 0x000BD3ED File Offset: 0x000BB5ED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GameAeonInfo()
		{
		}

		// Token: 0x06004511 RID: 17681 RVA: 0x000BD3F5 File Offset: 0x000BB5F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GameAeonInfo(GameAeonInfo other) : this()
		{
			this.gameAeonId_ = other.gameAeonId_;
			this.isUnlocked_ = other.isUnlocked_;
			this.unlockedAeonEnhanceNum_ = other.unlockedAeonEnhanceNum_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06004512 RID: 17682 RVA: 0x000BD432 File Offset: 0x000BB632
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GameAeonInfo Clone()
		{
			return new GameAeonInfo(this);
		}

		// Token: 0x170013BD RID: 5053
		// (get) Token: 0x06004513 RID: 17683 RVA: 0x000BD43A File Offset: 0x000BB63A
		// (set) Token: 0x06004514 RID: 17684 RVA: 0x000BD442 File Offset: 0x000BB642
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint GameAeonId
		{
			get
			{
				return this.gameAeonId_;
			}
			set
			{
				this.gameAeonId_ = value;
			}
		}

		// Token: 0x170013BE RID: 5054
		// (get) Token: 0x06004515 RID: 17685 RVA: 0x000BD44B File Offset: 0x000BB64B
		// (set) Token: 0x06004516 RID: 17686 RVA: 0x000BD453 File Offset: 0x000BB653
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsUnlocked
		{
			get
			{
				return this.isUnlocked_;
			}
			set
			{
				this.isUnlocked_ = value;
			}
		}

		// Token: 0x170013BF RID: 5055
		// (get) Token: 0x06004517 RID: 17687 RVA: 0x000BD45C File Offset: 0x000BB65C
		// (set) Token: 0x06004518 RID: 17688 RVA: 0x000BD464 File Offset: 0x000BB664
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint UnlockedAeonEnhanceNum
		{
			get
			{
				return this.unlockedAeonEnhanceNum_;
			}
			set
			{
				this.unlockedAeonEnhanceNum_ = value;
			}
		}

		// Token: 0x06004519 RID: 17689 RVA: 0x000BD46D File Offset: 0x000BB66D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GameAeonInfo);
		}

		// Token: 0x0600451A RID: 17690 RVA: 0x000BD47C File Offset: 0x000BB67C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GameAeonInfo other)
		{
			return other != null && (other == this || (this.GameAeonId == other.GameAeonId && this.IsUnlocked == other.IsUnlocked && this.UnlockedAeonEnhanceNum == other.UnlockedAeonEnhanceNum && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600451B RID: 17691 RVA: 0x000BD4D8 File Offset: 0x000BB6D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.GameAeonId != 0U)
			{
				num ^= this.GameAeonId.GetHashCode();
			}
			if (this.IsUnlocked)
			{
				num ^= this.IsUnlocked.GetHashCode();
			}
			if (this.UnlockedAeonEnhanceNum != 0U)
			{
				num ^= this.UnlockedAeonEnhanceNum.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600451C RID: 17692 RVA: 0x000BD549 File Offset: 0x000BB749
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600451D RID: 17693 RVA: 0x000BD551 File Offset: 0x000BB751
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600451E RID: 17694 RVA: 0x000BD55C File Offset: 0x000BB75C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsUnlocked)
			{
				output.WriteRawTag(16);
				output.WriteBool(this.IsUnlocked);
			}
			if (this.UnlockedAeonEnhanceNum != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.UnlockedAeonEnhanceNum);
			}
			if (this.GameAeonId != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.GameAeonId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600451F RID: 17695 RVA: 0x000BD5D4 File Offset: 0x000BB7D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.GameAeonId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.GameAeonId);
			}
			if (this.IsUnlocked)
			{
				num += 2;
			}
			if (this.UnlockedAeonEnhanceNum != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.UnlockedAeonEnhanceNum);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004520 RID: 17696 RVA: 0x000BD638 File Offset: 0x000BB838
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GameAeonInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.GameAeonId != 0U)
			{
				this.GameAeonId = other.GameAeonId;
			}
			if (other.IsUnlocked)
			{
				this.IsUnlocked = other.IsUnlocked;
			}
			if (other.UnlockedAeonEnhanceNum != 0U)
			{
				this.UnlockedAeonEnhanceNum = other.UnlockedAeonEnhanceNum;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004521 RID: 17697 RVA: 0x000BD69C File Offset: 0x000BB89C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06004522 RID: 17698 RVA: 0x000BD6A8 File Offset: 0x000BB8A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 24U)
					{
						if (num != 64U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.GameAeonId = input.ReadUInt32();
						}
					}
					else
					{
						this.UnlockedAeonEnhanceNum = input.ReadUInt32();
					}
				}
				else
				{
					this.IsUnlocked = input.ReadBool();
				}
			}
		}

		// Token: 0x04001B42 RID: 6978
		private static readonly MessageParser<GameAeonInfo> _parser = new MessageParser<GameAeonInfo>(() => new GameAeonInfo());

		// Token: 0x04001B43 RID: 6979
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001B44 RID: 6980
		public const int GameAeonIdFieldNumber = 8;

		// Token: 0x04001B45 RID: 6981
		private uint gameAeonId_;

		// Token: 0x04001B46 RID: 6982
		public const int IsUnlockedFieldNumber = 2;

		// Token: 0x04001B47 RID: 6983
		private bool isUnlocked_;

		// Token: 0x04001B48 RID: 6984
		public const int UnlockedAeonEnhanceNumFieldNumber = 3;

		// Token: 0x04001B49 RID: 6985
		private uint unlockedAeonEnhanceNum_;
	}
}
